package cn.eng.org.mapper;

import cn.eng.basic.domain.dto.ShopDto;
import cn.eng.org.domain.Shop;
import cn.eng.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author BoBo
 * @since 2022-12-17
 */
public interface ShopMapper extends BaseMapper<Shop> {
    //根据地址和名字查询店铺是否已入驻
    Shop loadByNameOrAddress(Shop shop);
    //审核通过 修改状态
    void updateState(@Param("id") Long shopId,@Param("state") int i);
    //柱状图
    List<ShopDto> echarts();
    //查询所有的可用的店铺
    List<Shop> loadAvailableShop();


}
